﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace GA.Server.Configuration
{
    public class ServerPropertyElement : ConfigurationElement
    {
        [ConfigurationProperty("Key", IsKey = true, IsRequired = true)]
        public string Key
        {
            get
            {
                return (string)this["Key"];
            }
            set
            {
                this["Key"] = value;
            }
        }

        [ConfigurationProperty("Value", IsRequired = false)]
        public string Value
        {
            get
            {
                return (string)this["Value"];
            }
            set
            {
                this["Value"] = value;
            }
        }

        [ConfigurationProperty("ServerProperties", IsRequired = false, IsDefaultCollection = false)]
        public ServerPropertiesElementCollection ServerProperties
        {
            get
            {
                return (ServerPropertiesElementCollection)this["ServerProperties"];
            }
            set
            {
                this["ServerProperties"] = value;
            }
        }
    }
}
